import axios from "axios";
let login = (data) => axios.post("/admins/login", data);
let register = (data) => axios.post("/admins/register", data);
let list = () => axios.get('/admins/list');
let detail = (params) => axios.get('/admins', { params });
let update = (data) => axios.put('/admins/',data);
let remove = (id) => axios.delete(`/admins/${id}`);
export default {
    login, register, list, detail,update,remove
}